package com.woniu.service;

import com.woniu.entity.Category;
import com.woniu.util.ResponseUtil;

import java.util.List;

public interface CategoryService {
    ResponseUtil findAll();
    ResponseUtil findAll2();
    ResponseUtil findById(Integer categoryId);
    ResponseUtil update(Category category);
    ResponseUtil delete(Integer categoryId);
    ResponseUtil updateStatus(Category category);
    ResponseUtil add(Category category);
    ResponseUtil addSubCategory(String name,Integer typeId);
    ResponseUtil findByName(String name);
    ResponseUtil findByCategoryId(Integer categoryId);
}
